home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / DB / UTIL72 / CAT712.SQL < prev    next >
Encoding:
Text File  |  1995-05-09  |  2.3 KB  |  72 lines

  1. rem 
  2. rem $Header: cat712.sql 7020100.1 94/09/23 22:14:28 cli Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1991 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      m711712.sql - Migrate 7.0.11 to 7.0.12
  7. Rem    DESCRIPTION
  8. Rem      This SQL script makes some schema modifications to migrate
  9. Rem      a 7.0.11 database to a 7.0.12 database.
  10. Rem    NOTES
  11. Rem      RIGHT AFTER A 7.0.11 DATABASE IS STARTED UP USING A 7.0.12
  12. Rem      RELEASE FOR THE FIRST TIME, RUN THIS SCRIPT (JUST ONCE)
  13. Rem      WHILE CONNECTED TO SYS OR INTERNAL.
  14. Rem    MODIFIED   (MM/DD/YY)
  15. Rem     rkooi      11/25/92 -  add default value to argument$ 
  16. Rem     kaghevli   11/24/92 -  change default limit for profile$ 
  17. Rem     rkooi      11/17/92 -  change index for argument$ 
  18. Rem     rkooi      11/13/92 -  fixup argument$ 
  19. Rem     mmoore     11/01/92 -  length is 30 not 32 
  20. Rem     glumpkin   10/20/92 -  Renamed from M711712.SQL 
  21. Rem     mmoore     10/13/92 -  add argument$ 
  22. Rem     jwijaya    10/07/92 -  comments 
  23. Rem     jwijaya    09/17/92 -  make error$.sequence to have default value 
  24. Rem     jwijaya    09/08/92 -  Creation 
  25.  
  26. REM
  27. REM     THIS SCRIPT IS TO BE RUN ONCE RIGHT AFTER A 7.0.11 DATABASE IS
  28. REM     STARTED UP FOR THE FIRST TIME USING ORACLE7 RELEASE 7.0.12.
  29. REM     WHILE CONNECTED TO SYS OR INTERNAL.
  30. REM
  31.  
  32. REM add column sequence to table error$
  33. alter table error$ add sequence number default 0
  34. /
  35. update error$ set sequence = 0
  36. /
  37. alter table error$ modify sequence number not null
  38. /
  39. drop index i_error1
  40. /
  41. create index i_error1 on error$(obj#, sequence)
  42. /
  43.  
  44. REM add argument$ to the dictionary
  45. drop table argument$
  46. /
  47. create table argument$
  48. ( obj#           number not null,
  49.   procedure$     varchar2(30),
  50.   overload#      number not null,
  51.   position       number not null,
  52.   sequence#      number not null,
  53.   level#         number not null,
  54.   argument       varchar2(30),
  55.   type           number not null,
  56.   default#       number,
  57.   in_out         number,
  58.   length         number,
  59.   precision      number,
  60.   scale          number,
  61.   radix          number,
  62.   deflength      number,
  63.   default$       long)
  64. /
  65. create unique index i_argument1 on 
  66.   argument$(obj#, procedure$, overload#, sequence#)
  67. /
  68.  
  69. REM change default limit for profile$
  70. update profile$ set limit=0 where limit=-1 and type=0
  71. /
  72.